package ${packageName}.${subPackageName};

<#list customClassList as customClass>
import ${customClass};
</#list>
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import ${packageName}.model.entity.${EntityName};
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

<#if hasLocalDateTime>
import java.time.LocalDateTime;
</#if>
<#if hasBigDecimal>
import java.math.BigDecimal;
</#if>
<#if hasListQueryField>
import java.util.List;
</#if>

/**
 * ${businessName}查询条件
 *
 * @author ${author}
 * @since ${date}
 */
@Data
@Schema(description = "${businessName}查询条件")
@TableRef(${EntityName}.class)
public class ${className} {
<#if fieldConfigs??>
  <#list fieldConfigs as fieldConfig>
    <#if fieldConfig.showInQuery>

    @Schema(description = "${fieldConfig.comment}")
    <#if fieldConfig.queryType != 'EQ'>
    @Query(type = QueryType.${fieldConfig.queryType})
    </#if>
    <#if fieldConfig.queryType = 'IN' || fieldConfig.queryType = 'NOT_IN' || fieldConfig.queryType = 'BETWEEN'>
    private List<${fieldConfig.fieldType}> ${fieldConfig.fieldName};
    <#else>
    private ${fieldConfig.fieldType} ${fieldConfig.fieldName};
    </#if>
    </#if>
  </#list>
</#if>
}
